package com.hulizuofang.wol.chat.client.ui.user;


import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;

public class ChatUserPanel extends Composite {
	public ChatUserPanel(ChatUser chatUser) {
		Label label = new Label(chatUser.getLogin());
		
		label.addClickHandler(new ClickHandler() {
			
			@Override
			public void onClick(ClickEvent event) {
				Window.alert("to be implemented");
			}
		});
		
		initWidget(label);
	}

	
}
